package com.jiahua.admin.biz.service.impl;

import java.util.List;

import com.jiahua.admin.biz.dao.InventoryCategoryDao;
import com.jiahua.admin.biz.service.InventoryCategoryService;
import com.jiahua.user.biz.model.InventoryCategory;

public class InventoryCategoryServiceImpl implements InventoryCategoryService {

	InventoryCategoryDao inventoryCategoryDao;

	public void setInventoryCategoryDao(InventoryCategoryDao inventoryCategoryDao) {
		this.inventoryCategoryDao = inventoryCategoryDao;
	}

	@Override
	public boolean saveInventoryCategory(InventoryCategory inventoryCategory) {
		return inventoryCategoryDao.saveInventoryCategory(inventoryCategory);
	}

	@Override
	public List<InventoryCategory> listInventoryCategory() {
		return inventoryCategoryDao.listInventoryCategory();
	}

	@Override
	public InventoryCategory getInventoryCategoryById(String id) {
		return inventoryCategoryDao.getInventoryCategoryById(id);
	}

}
